<?php

namespace Luka\StoreBundle\Entity;

use Doctrine\ORM\Mapping as ORM;

/**
 * Luka\StoreBundle\Entity\Address
 *
 * @ORM\Table(name="Address")
 * @ORM\Entity
 */
class Address
{
    /**
     * @var integer $id
     *
     * @ORM\Column(name="id", type="integer", nullable=false)
     * @ORM\Id
     * @ORM\GeneratedValue(strategy="IDENTITY")
     */
    private $id;

    /**
     * @var string $value
     *
     * @ORM\Column(name="value", type="string", length=255, nullable=false)
     */
    private $value;

    /**
     * @var Visibility
     *
     * @ORM\ManyToOne(targetEntity="Visibility")
     * @ORM\JoinColumns({
     *   @ORM\JoinColumn(name="visibility_id", referencedColumnName="id")
     * })
     */
    private $visibility;

    /**
     * @var Party
     *
     * @ORM\ManyToOne(targetEntity="Party")
     * @ORM\JoinColumns({
     *   @ORM\JoinColumn(name="party_id", referencedColumnName="id")
     * })
     */
    private $party;

    /**
     * @var Addresstype
     *
     * @ORM\ManyToOne(targetEntity="Addresstype")
     * @ORM\JoinColumns({
     *   @ORM\JoinColumn(name="addresstype_id", referencedColumnName="id")
     * })
     */
    private $addresstype;



    /**
     * Get id
     *
     * @return integer 
     */
    public function getId()
    {
        return $this->id;
    }

    /**
     * Set value
     *
     * @param string $value
     */
    public function setValue($value)
    {
        $this->value = $value;
    }

    /**
     * Get value
     *
     * @return string 
     */
    public function getValue()
    {
        return $this->value;
    }

    /**
     * Set visibility
     *
     * @param Luka\StoreBundle\Entity\Visibility $visibility
     */
    public function setVisibility(\Luka\StoreBundle\Entity\Visibility $visibility)
    {
        $this->visibility = $visibility;
    }

    /**
     * Get visibility
     *
     * @return Luka\StoreBundle\Entity\Visibility 
     */
    public function getVisibility()
    {
        return $this->visibility;
    }

    /**
     * Set party
     *
     * @param Luka\StoreBundle\Entity\Party $party
     */
    public function setParty(\Luka\StoreBundle\Entity\Party $party)
    {
        $this->party = $party;
    }

    /**
     * Get party
     *
     * @return Luka\StoreBundle\Entity\Party 
     */
    public function getParty()
    {
        return $this->party;
    }

    /**
     * Set addresstype
     *
     * @param Luka\StoreBundle\Entity\Addresstype $addresstype
     */
    public function setAddresstype(\Luka\StoreBundle\Entity\Addresstype $addresstype)
    {
        $this->addresstype = $addresstype;
    }

    /**
     * Get addresstype
     *
     * @return Luka\StoreBundle\Entity\Addresstype 
     */
    public function getAddresstype()
    {
        return $this->addresstype;
    }
}